<html>
    <head>
      <title>Index for <%= h :host %> <%= h :path %> </title>
    </head>

    <body>

	<% Dir.entries(h(:real_dir)).each { |d| %>
            <a href="<%= d %>"><%= d %></a><br>
	<% } %>
        
	<% req.each { |type, list| %>
	    <h2><%= type.capitalize if type %>s</h2>
        
	    <table border="1">
	    <% list.each { |key, value|    %>
	    <%    next unless key || value   %>
	    <%    next if key.empty? || value.empty?   %>
		  <tr><td><%= key %></td> <td><%= value.join(", ") %></td></tr>
	    <% } if list %>
	    </table>
	<% } %>

    </body>
</html>
